/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package forms;

import com.sun.lwuit.Command;
import com.sun.lwuit.events.ActionEvent;
import entidade.Categoria;
import entidade.Registro;

/**
 *
 * @author ademar.victorino
 */
public class DiscarForm extends AbstractForm {

    private Registro reg;
    private Categoria cat;
    private AbstractForm returnForm;

    public DiscarForm() {
        super();
        setTitle("DiscarForm");

        addCommand(new Command("Voltar") {

            public void actionPerformed(ActionEvent evt) {
                returnForm.show();
            }
        });

        addCommand(new Command("Discar") {

            public void actionPerformed(ActionEvent evt) {
            }
        });
    }

    void show(Registro reg, Categoria cat) {
      
    }

    void show(Registro reg, AbstractForm returnForm) {
        super.show();
        this.returnForm = returnForm;
        this.reg = reg;
    }
}
